home *** CD-ROM | disk | FTP | other *** search
Unknown | 2007-05-11 | 10.8 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| b3 f2 0d 0a c5 c2 38 46 | 63 00 00 00 00 00 00 00 |......8F|c.......|
|00000010| 00 11 00 00 00 40 00 00 | 00 73 42 01 00 00 64 00 |.....@..|.sB...d.|
|00000020| 00 5a 00 00 64 01 00 64 | 02 00 6b 01 00 5a 01 00 |.Z..d..d|..k..Z..|
|00000030| 64 01 00 64 02 00 6b 02 | 00 5a 02 00 64 01 00 64 |d..d..k.|.Z..d..d|
|00000040| 02 00 6b 03 00 5a 03 00 | 64 03 00 64 04 00 64 05 |..k..Z..|d..d..d.|
|00000050| 00 64 06 00 64 07 00 64 | 08 00 64 09 00 64 0a 00 |.d..d..d|..d..d..|
|00000060| 64 0b 00 64 0c 00 64 0d | 00 64 0e 00 64 0f 00 64 |d..d..d.|.d..d..d|
|00000070| 10 00 67 0e 00 5a 04 00 | 64 11 00 64 12 00 64 13 |..g..Z..|d..d..d.|
|00000080| 00 84 02 00 5a 05 00 64 | 02 00 64 14 00 84 01 00 |....Z..d|..d.....|
|00000090| 5a 07 00 64 15 00 84 00 | 00 5a 08 00 64 02 00 64 |Z..d....|.Z..d..d|
|000000a0| 02 00 64 16 00 84 02 00 | 5a 09 00 64 02 00 64 17 |..d.....|Z..d..d.|
|000000b0| 00 84 01 00 5a 0a 00 64 | 02 00 64 18 00 84 01 00 |....Z..d|..d.....|
|000000c0| 5a 0b 00 64 02 00 64 02 | 00 64 19 00 84 02 00 5a |Z..d..d.|.d.....Z|
|000000d0| 0c 00 64 02 00 64 1a 00 | 84 01 00 5a 0d 00 64 1b |..d..d..|...Z..d.|
|000000e0| 00 84 00 00 5a 0e 00 64 | 1c 00 84 00 00 5a 0f 00 |....Z..d|.....Z..|
|000000f0| 64 1d 00 84 00 00 5a 10 | 00 64 02 00 64 02 00 64 |d.....Z.|.d..d..d|
|00000100| 1e 00 84 02 00 5a 11 00 | 64 02 00 64 1f 00 84 01 |.....Z..|d..d....|
|00000110| 00 5a 12 00 64 02 00 64 | 02 00 64 20 00 84 02 00 |.Z..d..d|..d ....|
|00000120| 5a 13 00 64 02 00 64 02 | 00 64 02 00 64 21 00 84 |Z..d..d.|.d..d!..|
|00000130| 03 00 5a 14 00 64 02 00 | 64 02 00 64 22 00 84 02 |..Z..d..|d..d"...|
|00000140| 00 5a 15 00 64 02 00 64 | 02 00 64 23 00 84 02 00 |.Z..d..d|..d#....|
|00000150| 5a 16 00 64 24 00 84 00 | 00 5a 17 00 64 02 00 53 |Z..d$...|.Z..d..S|
|00000160| 28 25 00 00 00 73 40 00 | 00 00 45 78 74 72 61 63 |(%...s@.|..Extrac|
|00000170| 74 2c 20 66 6f 72 6d 61 | 74 20 61 6e 64 20 70 72 |t, forma|t and pr|
|00000180| 69 6e 74 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |int info|rmation |
|00000190| 61 62 6f 75 74 20 50 79 | 74 68 6f 6e 20 73 74 61 |about Py|thon sta|
|000001a0| 63 6b 20 74 72 61 63 65 | 73 2e 69 ff ff ff ff 4e |ck trace|s.i....N|
|000001b0| 74 0d 00 00 00 65 78 74 | 72 61 63 74 5f 73 74 61 |t....ext|ract_sta|
|000001c0| 63 6b 74 0a 00 00 00 65 | 78 74 72 61 63 74 5f 74 |ckt....e|xtract_t|
|000001d0| 62 74 10 00 00 00 66 6f | 72 6d 61 74 5f 65 78 63 |bt....fo|rmat_exc|
|000001e0| 65 70 74 69 6f 6e 74 15 | 00 00 00 66 6f 72 6d 61 |eptiont.|...forma|
|000001f0| 74 5f 65 78 63 65 70 74 | 69 6f 6e 5f 6f 6e 6c 79 |t_except|ion_only|
|00000200| 74 0b 00 00 00 66 6f 72 | 6d 61 74 5f 6c 69 73 74 |t....for|mat_list|
|00000210| 74 0c 00 00 00 66 6f 72 | 6d 61 74 5f 73 74 61 63 |t....for|mat_stac|
|00000220| 6b 74 09 00 00 00 66 6f | 72 6d 61 74 5f 74 62 74 |kt....fo|rmat_tbt|
|00000230| 09 00 00 00 70 72 69 6e | 74 5f 65 78 63 74 0a 00 |....prin|t_exct..|
|00000240| 00 00 66 6f 72 6d 61 74 | 5f 65 78 63 74 0f 00 00 |..format|_exct...|
|00000250| 00 70 72 69 6e 74 5f 65 | 78 63 65 70 74 69 6f 6e |.print_e|xception|
|00000260| 74 0a 00 00 00 70 72 69 | 6e 74 5f 6c 61 73 74 74 |t....pri|nt_lastt|
|00000270| 0b 00 00 00 70 72 69 6e | 74 5f 73 74 61 63 6b 74 |....prin|t_stackt|
|00000280| 08 00 00 00 70 72 69 6e | 74 5f 74 62 74 09 00 00 |....prin|t_tbt...|
|00000290| 00 74 62 5f 6c 69 6e 65 | 6e 6f 74 00 00 00 00 73 |.tb_line|not....s|
|000002a0| 01 00 00 00 0a 63 03 00 | 00 00 03 00 00 00 03 00 |.....c..|........|
|000002b0| 00 00 43 00 00 00 73 15 | 00 00 00 7c 00 00 69 00 |..C...s.|...|..i.|
|000002c0| 00 7c 01 00 7c 02 00 17 | 83 01 00 01 64 00 00 53 |.|..|...|....d..S|
|000002d0| 28 01 00 00 00 4e 28 01 | 00 00 00 74 05 00 00 00 |(....N(.|...t....|
|000002e0| 77 72 69 74 65 28 03 00 | 00 00 74 04 00 00 00 66 |write(..|..t....f|
|000002f0| 69 6c 65 74 03 00 00 00 | 73 74 72 74 0a 00 00 00 |ilet....|strt....|
|00000300| 74 65 72 6d 69 6e 61 74 | 6f 72 28 00 00 00 00 28 |terminat|or(....(|
|00000310| 00 00 00 00 73 0c 00 00 | 00 74 72 61 63 65 62 61 |....s...|.traceba|
|00000320| 63 6b 2e 70 79 74 06 00 | 00 00 5f 70 72 69 6e 74 |ck.pyt..|.._print|
|00000330| 0c 00 00 00 73 02 00 00 | 00 00 01 63 02 00 00 00 |....s...|...c....|
|00000340| 06 00 00 00 07 00 00 00 | 43 00 00 00 73 77 00 00 |........|C...sw..|
|00000350| 00 7c 01 00 64 03 00 6a | 08 00 6f 0d 00 01 74 01 |.|..d..j|..o...t.|
|00000360| 00 69 02 00 7d 01 00 6e | 01 00 01 78 56 00 7c 00 |.i..}..n|...xV.|.|
|00000370| 00 44 5d 4e 00 5c 04 00 | 7d 02 00 7d 03 00 7d 04 |.D]N.\..|}..}..}.|
|00000380| 00 7d 05 00 74 03 00 7c | 01 00 64 01 00 7c 02 00 |.}..t..||..d..|..|
|00000390| 7c 03 00 7c 04 00 66 03 | 00 16 83 02 00 01 7c 05 ||..|..f.|......|.|
|000003a0| 00 6f 1b 00 01 74 03 00 | 7c 01 00 64 02 00 7c 05 |.o...t..||..d..|.|
|000003b0| 00 69 04 00 83 00 00 16 | 83 02 00 01 71 21 00 01 |.i......|....q!..|
|000003c0| 71 21 00 57 64 03 00 53 | 28 04 00 00 00 73 79 00 |q!.Wd..S|(....sy.|
|000003d0| 00 00 50 72 69 6e 74 20 | 74 68 65 20 6c 69 73 74 |..Print |the list|
|000003e0| 20 6f 66 20 74 75 70 6c | 65 73 20 61 73 20 72 65 | of tupl|es as re|
|000003f0| 74 75 72 6e 65 64 20 62 | 79 20 65 78 74 72 61 63 |turned b|y extrac|
|00000400| 74 5f 74 62 28 29 20 6f | 72 0a 20 20 20 20 65 78 |t_tb() o|r. ex|
|00000410| 74 72 61 63 74 5f 73 74 | 61 63 6b 28 29 20 61 73 |tract_st|ack() as|
|00000420| 20 61 20 66 6f 72 6d 61 | 74 74 65 64 20 73 74 61 | a forma|tted sta|
|00000430| 63 6b 20 74 72 61 63 65 | 20 74 6f 20 74 68 65 20 |ck trace| to the |
|00000440| 67 69 76 65 6e 20 66 69 | 6c 65 2e 73 1b 00 00 00 |given fi|le.s....|
|00000450| 20 20 46 69 6c 65 20 22 | 25 73 22 2c 20 6c 69 6e | File "|%s", lin|
|00000460| 65 20 25 64 2c 20 69 6e | 20 25 73 73 06 00 00 00 |e %d, in| %ss....|
|00000470| 20 20 20 20 25 73 4e 28 | 05 00 00 00 74 04 00 00 | %sN(|....t...|
|00000480| 00 4e 6f 6e 65 74 03 00 | 00 00 73 79 73 74 06 00 |.Nonet..|..syst..|
|00000490| 00 00 73 74 64 65 72 72 | 52 13 00 00 00 74 05 00 |..stderr|R....t..|
|000004a0| 00 00 73 74 72 69 70 28 | 06 00 00 00 74 0e 00 00 |..strip(|....t...|
|000004b0| 00 65 78 74 72 61 63 74 | 65 64 5f 6c 69 73 74 52 |.extract|ed_listR|
|000004c0| 10 00 00 00 74 08 00 00 | 00 66 69 6c 65 6e 61 6d |....t...|.filenam|
|000004d0| 65 74 06 00 00 00 6c 69 | 6e 65 6e 6f 74 04 00 00 |et....li|nenot...|
|000004e0| 00 6e 61 6d 65 74 04 00 | 00 00 6c 69 6e 65 28 00 |.namet..|..line(.|
|000004f0| 00 00 00 28 00 00 00 00 | 73 0c 00 00 00 74 72 61 |...(....|s....tra|
|00000500| 63 65 62 61 63 6b 2e 70 | 79 74 0a 00 00 00 70 72 |ceback.p|yt....pr|
|00000510| 69 6e 74 5f 6c 69 73 74 | 10 00 00 00 73 10 00 00 |int_list|....s...|
|00000520| 00 00 03 0d 01 0d 01 07 | 00 12 01 06 01 14 01 07 |........|........|
|00000530| 01 63 01 00 00 00 07 00 | 00 00 05 00 00 00 43 00 |.c......|......C.|
|00000540| 00 00 73 66 00 00 00 67 | 00 00 7d 01 00 78 59 00 |..sf...g|..}..xY.|
|00000550| 7c 00 00 44 5d 51 00 5c | 04 00 7d 02 00 7d 03 00 ||..D]Q.\|..}..}..|
|00000560| 7d 04 00 7d 05 00 64 01 | 00 7c 02 00 7c 03 00 7c |}..}..d.|.|..|..||
|00000570| 04 00 66 03 00 16 7d 06 | 00 7c 05 00 6f 18 00 01 |..f...}.|.|..o...|
|00000580| 7c 06 00 64 02 00 7c 05 | 00 69 00 00 83 00 00 16 ||..d..|.|.i......|
|00000590| 17 7d 06 00 6e 01 00 01 | 7c 01 00 69 01 00 7c 06 |.}..n...||..i..|.|
|000005a0| 00 83 01 00 01 71 0d 00 | 57 7c 01 00 53 28 03 00 |.....q..|W|..S(..|
|000005b0| 00 00 73 b2 01 00 00 46 | 6f 72 6d 61 74 20 61 20 |..s....F|ormat a |
|000005c0| 6c 69 73 74 20 6f 66 20 | 74 72 61 63 65 62 61 63 |list of |tracebac|
|000005d0| 6b 20 65 6e 74 72 79 20 | 74 75 70 6c 65 73 20 66 |k entry |tuples f|
|000005e0| 6f 72 20 70 72 69 6e 74 | 69 6e 67 2e 0a 0a 20 20 |or print|ing... |
|000005f0| 20 20 47 69 76 65 6e 20 | 61 20 6c 69 73 74 20 6f | Given |a list o|
|00000600| 66 20 74 75 70 6c 65 73 | 20 61 73 20 72 65 74 75 |f tuples| as retu|
|00000610| 72 6e 65 64 20 62 79 20 | 65 78 74 72 61 63 74 5f |rned by |extract_|
|00000620| 74 62 28 29 20 6f 72 0a | 20 20 20 20 65 78 74 72 |tb() or.| extr|
|00000630| 61 63 74 5f 73 74 61 63 | 6b 28 29 2c 20 72 65 74 |act_stac|k(), ret|
|00000640| 75 72 6e 20 61 20 6c 69 | 73 74 20 6f 66 20 73 74 |urn a li|st of st|
|00000650| 72 69 6e 67 73 20 72 65 | 61 64 79 20 66 6f 72 20 |rings re|ady for |
|00000660| 70 72 69 6e 74 69 6e 67 | 2e 0a 20 20 20 20 45 61 |printing|.. Ea|
|00000670| 63 68 20 73 74 72 69 6e | 67 20 69 6e 20 74 68 65 |ch strin|g in the|
|00000680| 20 72 65 73 75 6c 74 69 | 6e 67 20 6c 69 73 74 20 | resulti|ng list |
|00000690| 63 6f 72 72 65 73 70 6f | 6e 64 73 20 74 6f 20 74 |correspo|nds to t|
|000006a0| 68 65 20 69 74 65 6d 20 | 77 69 74 68 20 74 68 65 |he item |with the|
|000006b0| 0a 20 20 20 20 73 61 6d | 65 20 69 6e 64 65 78 20 |. sam|e index |
|000006c0| 69 6e 20 74 68 65 20 61 | 72 67 75 6d 65 6e 74 20 |in the a|rgument |
|000006d0| 6c 69 73 74 2e 20 20 45 | 61 63 68 20 73 74 72 69 |list. E|ach stri|
|000006e0| 6e 67 20 65 6e 64 73 20 | 69 6e 20 61 20 6e 65 77 |ng ends |in a new|
|000006f0| 6c 69 6e 65 3b 0a 20 20 | 20 20 74 68 65 20 73 74 |line;. | the st|
|00000700| 72 69 6e 67 73 20 6d 61 | 79 20 63 6f 6e 74 61 69 |rings ma|y contai|
|00000710| 6e 20 69 6e 74 65 72 6e | 61 6c 20 6e 65 77 6c 69 |n intern|al newli|
|00000720| 6e 65 73 20 61 73 20 77 | 65 6c 6c 2c 20 66 6f 72 |nes as w|ell, for|
|00000730| 20 74 68 6f 73 65 20 69 | 74 65 6d 73 0a 20 20 20 | those i|tems. |
|00000740| 20 77 68 6f 73 65 20 73 | 6f 75 72 63 65 20 74 65 | whose s|ource te|
|00000750| 78 74 20 6c 69 6e 65 20 | 69 73 20 6e 6f 74 20 4e |xt line |is not N|
|00000760| 6f 6e 65 2e 0a 20 20 20 | 20 73 1c 00 00 00 20 20 |one.. | s.... |
|00000770| 46 69 6c 65 20 22 25 73 | 22 2c 20 6c 69 6e 65 20 |File "%s|", line |
|00000780| 25 64 2c 20 69 6e 20 25 | 73 0a 73 07 00 00 00 20 |%d, in %|s.s.... |
|00000790| 20 20 20 25 73 0a 28 02 | 00 00 00 52 17 00 00 00 | %s.(.|...R....|
|000007a0| 74 06 00 00 00 61 70 70 | 65 6e 64 28 07 00 00 00 |t....app|end(....|
|000007b0| 52 18 00 00 00 74 04 00 | 00 00 6c 69 73 74 52 19 |R....t..|..listR.|
|000007c0| 00 00 00 52 1a 00 00 00 | 52 1b 00 00 00 52 1c 00 |...R....|R....R..|
|000007d0| 00 00 74 04 00 00 00 69 | 74 65 6d 28 00 00 00 00 |..t....i|tem(....|
|000007e0| 28 00 00 00 00 73 0c 00 | 00 00 74 72 61 63 65 62 |(....s..|..traceb|
|000007f0| 61 63 6b 2e 70 79 52 04 | 00 00 00 1b 00 00 00 73 |ack.pyR.|.......s|
|00000800| 10 00 00 00 00 0a 06 01 | 07 00 12 01 13 01 07 01 |........|........|
|00000810| 18 01 11 01 63 03 00 00 | 00 0a 00 00 00 06 00 00 |....c...|........|
|00000820| 00 43 00 00 00 73 22 01 | 00 00 7c 02 00 64 06 00 |.C...s".|..|..d..|
|00000830| 6a 08 00 6f 0d 00 01 74 | 01 00 69 02 00 7d 02 00 |j..o...t|..i..}..|
|00000840| 6e 01 00 01 7c 01 00 64 | 06 00 6a 08 00 6f 21 00 |n...|..d|..j..o!.|
|00000850| 01 74 03 00 74 01 00 64 | 01 00 83 02 00 6f 0d 00 |.t..t..d|.....o..|
|00000860| 01 74 01 00 69 04 00 7d | 01 00 71 48 00 01 6e 01 |.t..i..}|..qH..n.|
|00000870| 00 01 64 02 00 7d 03 00 | 78 cd 00 7c 00 00 64 06 |..d..}..|x..|..d.|
|00000880| 00 6a 09 00 6f bf 00 01 | 7c 01 00 64 06 00 6a 08 |.j..o...||..d..j.|
|00000890| 00 70 0d 00 01 7c 03 00 | 7c 01 00 6a 00 00 6f a5 |.p...|..||..j..o.|
|000008a0| 00 01 7c 00 00 69 05 00 | 7d 04 00 7c 00 00 69 06 |..|..i..|}..|..i.|
|000008b0| 00 7d 05 00 7c 04 00 69 | 07 00 7d 06 00 7c 06 00 |.}..|..i|..}..|..|
|000008c0| 69 08 00 7d 07 00 7c 06 | 00 69 09 00 7d 08 00 74 |i..}..|.|.i..}..t|
|000008d0| 0a 00 7c 02 00 64 03 00 | 7c 07 00 7c 05 00 7c 08 |..|..d..||..|..|.|
|000008e0| 00 66 03 00 16 83 02 00 | 01 74 0b 00 69 0c 00 7c |.f......|.t..i..||
|000008f0| 07 00 83 01 00 01 74 0b | 00 69 0d 00 7c 07 00 7c |......t.|.i..|..||
|00000900| 05 00 7c 04 00 69 0e 00 | 83 03 00 7d 09 00 7c 09 |..|..i..|...}..|.|
|00000910| 00 6f 1b 00 01 74 0a 00 | 7c 02 00 64 04 00 7c 09 |.o...t..||..d..|.|
|00000920| 00 69 0f 00 83 00 00 17 | 83 02 00 01 6e 01 00 01 |.i......|....n...|
|00000930| 7c 00 00 69 10 00 7d 00 | 00 7c 03 00 64 05 00 17 ||..i..}.|.|..d...|
|00000940| 7d 03 00 71 51 00 01 57 | 64 06 00 53 28 07 00 00 |}..qQ..W|d..S(...|
|00000950| 00 73 1f 01 00 00 50 72 | 69 6e 74 20 75 70 20 74 |.s....Pr|int up t|
|00000960| 6f 20 27 6c 69 6d 69 74 | 27 20 73 74 61 63 6b 20 |o 'limit|' stack |
|00000970| 74 72 61 63 65 20 65 6e | 74 72 69 65 73 20 66 72 |trace en|tries fr|
|00000980| 6f 6d 20 74 68 65 20 74 | 72 61 63 65 62 61 63 6b |om the t|raceback|
|00000990| 20 27 74 62 27 2e 0a 0a | 20 20 20 20 49 66 20 27 | 'tb'...| If '|
|000009a0| 6c 69 6d 69 74 27 20 69 | 73 20 6f 6d 69 74 74 65 |limit' i|s omitte|
|000009b0| 64 20 6f 72 20 4e 6f 6e | 65 2c 20 61 6c 6c 20 65 |d or Non|e, all e|
|000009c0| 6e 74 72 69 65 73 20 61 | 72 65 20 70 72 69 6e 74 |ntries a|re print|
|000009d0| 65 64 2e 20 20 49 66 20 | 27 66 69 6c 65 27 0a 20 |ed. If |'file'. |
|000009e0| 20 20 20 69 73 20 6f 6d | 69 74 74 65 64 20 6f 72 | is om|itted or|
|000009f0| 20 4e 6f 6e 65 2c 20 74 | 68 65 20 6f 75 74 70 75 | None, t|he outpu|
|00000a00| 74 20 67 6f 65 73 20 74 | 6f 20 73 79 73 2e 73 74 |t goes t|o sys.st|
|00000a10| 64 65 72 72 3b 20 6f 74 | 68 65 72 77 69 73 65 0a |derr; ot|herwise.|
|00000a20| 20 20 20 20 27 66 69 6c | 65 27 20 73 68 6f 75 6c | 'fil|e' shoul|
|00000a30| 64 20 62 65 20 61 6e 20 | 6f 70 65 6e 20 66 69 6c |d be an |open fil|
|00000a40| 65 20 6f 72 20 66 69 6c | 65 2d 6c 69 6b 65 20 6f |e or fil|e-like o|
|00000a50| 62 6a 65 63 74 20 77 69 | 74 68 20 61 20 77 72 69 |bject wi|th a wri|
|00000a60| 74 65 28 29 0a 20 20 20 | 20 6d 65 74 68 6f 64 2e |te(). | method.|
|00000a70| 0a 20 20 20 20 74 0e 00 | 00 00 74 72 61 63 65 62 |. t..|..traceb|
|00000a80| 61 63 6b 6c 69 6d 69 74 | 69 00 00 00 00 73 1b 00 |acklimit|i....s..|
|00000a90| 00 00 20 20 46 69 6c 65 | 20 22 25 73 22 2c 20 6c |.. File| "%s", l|
|00000aa0| 69 6e 65 20 25 64 2c 20 | 69 6e 20 25 73 73 04 00 |ine %d, |in %ss..|
|00000ab0| 00 00 20 20 20 20 69 01 | 00 00 00 4e 28 11 00 00 |.. i.|...N(...|
|00000ac0| 00 52 14 00 00 00 52 15 | 00 00 00 52 16 00 00 00 |.R....R.|...R....|
|00000ad0| 74 07 00 00 00 68 61 73 | 61 74 74 72 52 21 00 00 |t....has|attrR!..|
|00000ae0| 00 74 08 00 00 00 74 62 | 5f 66 72 61 6d 65 52 0d |.t....tb|_frameR.|
|00000af0| 00 00 00 74 06 00 00 00 | 66 5f 63 6f 64 65 74 0b |...t....|f_codet.|
|00000b00| 00 00 00 63 6f 5f 66 69 | 6c 65 6e 61 6d 65 74 07 |...co_fi|lenamet.|
|00000b10| 00 00 00 63 6f 5f 6e 61 | 6d 65 52 13 00 00 00 74 |...co_na|meR....t|
|00000b20| 09 00 00 00 6c 69 6e 65 | 63 61 63 68 65 74 0a 00 |....line|cachet..|
|00000b30| 00 00 63 68 65 63 6b 63 | 61 63 68 65 74 07 00 00 |..checkc|achet...|
|00000b40| 00 67 65 74 6c 69 6e 65 | 74 09 00 00 00 66 5f 67 |.getline|t....f_g|
|00000b50| 6c 6f 62 61 6c 73 52 17 | 00 00 00 74 07 00 00 00 |lobalsR.|...t....|
|00000b60| 74 62 5f 6e 65 78 74 28 | 0a 00 00 00 74 02 00 00 |tb_next(|....t...|
|00000b70| 00 74 62 74 05 00 00 00 | 6c 69 6d 69 74 52 10 00 |.tbt....|limitR..|
|00000b80| 00 00 74 01 00 00 00 6e | 74 01 00 00 00 66 52 1a |..t....n|t....fR.|
|00000b90| 00 00 00 74 02 00 00 00 | 63 6f 52 19 00 00 00 52 |...t....|coR....R|
|00000ba0| 1b 00 00 00 52 1c 00 00 | 00 28 00 00 00 00 28 00 |....R...|.(....(.|
|00000bb0| 00 00 00 73 0c 00 00 00 | 74 72 61 63 65 62 61 63 |...s....|tracebac|
|00000bc0| 6b 2e 70 79 52 0c 00 00 | 00 2e 00 00 00 73 26 00 |k.pyR...|.....s&.|
|00000bd0| 00 00 00 08 0d 01 0d 01 | 0d 01 10 01 11 01 06 01 |........|........|
|00000be0| 2a 01 09 01 09 01 09 01 | 09 01 09 01 06 01 14 01 |*.......|........|
|00000bf0| 0d 01 18 01 22 01 09 01 | 63 02 00 00 00 02 00 00 |...."...|c.......|
|00000c00| 00 04 00 00 00 43 00 00 | 00 73 13 00 00 00 74 00 |.....C..|.s....t.|
|00000c10| 00 74 01 00 7c 00 00 7c | 01 00 83 02 00 83 01 00 |.t..|..||........|
|00000c20| 53 28 01 00 00 00 73 36 | 00 00 00 41 20 73 68 6f |S(....s6|...A sho|
|00000c30| 72 74 68 61 6e 64 20 66 | 6f 72 20 27 66 6f 72 6d |rthand f|or 'form|
|00000c40| 61 74 5f 6c 69 73 74 28 | 65 78 74 72 61 63 74 5f |at_list(|extract_|
|00000c50| 73 74 61 63 6b 28 66 2c | 20 6c 69 6d 69 74 29 29 |stack(f,| limit))|
|00000c60| 2e 28 02 00 00 00 52 04 | 00 00 00 52 01 00 00 00 |.(....R.|...R....|
|00000c70| 28 02 00 00 00 52 2c 00 | 00 00 52 2d 00 00 00 28 |(....R,.|..R-...(|
|00000c80| 00 00 00 00 28 00 00 00 | 00 73 0c 00 00 00 74 72 |....(...|.s....tr|
|00000c90| 61 63 65 62 61 63 6b 2e | 70 79 52 06 00 00 00 4a |aceback.|pyR....J|
|00000ca0| 00 00 00 73 02 00 00 00 | 00 02 63 02 00 00 00 0a |...s....|..c.....|
|00000cb0| 00 00 00 05 00 00 00 43 | 00 00 00 73 08 01 00 00 |.......C|...s....|
|00000cc0| 7c 01 00 64 04 00 6a 08 | 00 6f 21 00 01 74 01 00 ||..d..j.|.o!..t..|
|00000cd0| 74 02 00 64 01 00 83 02 | 00 6f 0d 00 01 74 02 00 |t..d....|.o...t..|
|00000ce0| 69 03 00 7d 01 00 71 2e | 00 01 6e 01 00 01 67 00 |i..}..q.|..n...g.|
|00000cf0| 00 7d 02 00 64 02 00 7d | 03 00 78 c7 00 7c 00 00 |.}..d..}|..x..|..|
|00000d00| 64 04 00 6a 09 00 6f b9 | 00 01 7c 01 00 64 04 00 |d..j..o.|..|..d..|
|00000d10| 6a 08 00 70 0d 00 01 7c | 03 00 7c 01 00 6a 00 00 |j..p...||..|..j..|
|00000d20| 6f 9f 00 01 7c 00 00 69 | 04 00 7d 04 00 7c 00 00 |o...|..i|..}..|..|
|00000d30| 69 05 00 7d 05 00 7c 04 | 00 69 06 00 7d 06 00 7c |i..}..|.|.i..}..||
|00000d40| 06 00 69 07 00 7d 07 00 | 7c 06 00 69 08 00 7d 08 |..i..}..||..i..}.|
|00000d50| 00 74 09 00 69 0a 00 7c | 07 00 83 01 00 01 74 09 |.t..i..||......t.|
|00000d60| 00 69 0b 00 7c 07 00 7c | 05 00 7c 04 00 69 0c 00 |.i..|..||..|..i..|
|00000d70| 83 03 00 7d 09 00 7c 09 | 00 6f 10 00 01 7c 09 00 |...}..|.|.o...|..|
|00000d80| 69 0d 00 83 00 00 7d 09 | 00 6e 07 00 01 64 04 00 |i.....}.|.n...d..|
|00000d90| 7d 09 00 7c 02 00 69 0e | 00 7c 07 00 7c 05 00 7c |}..|..i.|.|..|..||
|00000da0| 08 00 7c 09 00 66 04 00 | 83 01 00 01 7c 00 00 69 |..|..f..|....|..i|
|00000db0| 0f 00 7d 00 00 7c 03 00 | 64 03 00 17 7d 03 00 71 |..}..|..|d...}..q|
|00000dc0| 3d 00 01 57 7c 02 00 53 | 28 05 00 00 00 73 ed 01 |=..W|..S|(....s..|
|00000dd0| 00 00 52 65 74 75 72 6e | 20 6c 69 73 74 20 6f 66 |..Return| list of|
|00000de0| 20 75 70 20 74 6f 20 6c | 69 6d 69 74 20 70 72 65 | up to l|imit pre|
|00000df0| 2d 70 72 6f 63 65 73 73 | 65 64 20 65 6e 74 72 69 |-process|ed entri|
|00000e00| 65 73 20 66 72 6f 6d 20 | 74 72 61 63 65 62 61 63 |es from |tracebac|
|00000e10| 6b 2e 0a 0a 20 20 20 20 | 54 68 69 73 20 69 73 20 |k... |This is |
|00000e20| 75 73 65 66 75 6c 20 66 | 6f 72 20 61 6c 74 65 72 |useful f|or alter|
|00000e30| 6e 61 74 65 20 66 6f 72 | 6d 61 74 74 69 6e 67 20 |nate for|matting |
|00000e40| 6f 66 20 73 74 61 63 6b | 20 74 72 61 63 65 73 2e |of stack| traces.|
|00000e50| 20 20 49 66 0a 20 20 20 | 20 27 6c 69 6d 69 74 27 | If. | 'limit'|
|00000e60| 20 69 73 20 6f 6d 69 74 | 74 65 64 20 6f 72 20 4e | is omit|ted or N|
|00000e70| 6f 6e 65 2c 20 61 6c 6c | 20 65 6e 74 72 69 65 73 |one, all| entries|
|00000e80| 20 61 72 65 20 65 78 74 | 72 61 63 74 65 64 2e 20 | are ext|racted. |
|00000e90| 20 41 0a 20 20 20 20 70 | 72 65 2d 70 72 6f 63 65 | A. p|re-proce|
|00000ea0| 73 73 65 64 20 73 74 61 | 63 6b 20 74 72 61 63 65 |ssed sta|ck trace|
|00000eb0| 20 65 6e 74 72 79 20 69 | 73 20 61 20 71 75 61 64 | entry i|s a quad|
|00000ec0| 72 75 70 6c 65 20 28 66 | 69 6c 65 6e 61 6d 65 2c |ruple (f|ilename,|
|00000ed0| 20 6c 69 6e 65 0a 20 20 | 20 20 6e 75 6d 62 65 72 | line. | number|
|00000ee0| 2c 20 66 75 6e 63 74 69 | 6f 6e 20 6e 61 6d 65 2c |, functi|on name,|
|00000ef0| 20 74 65 78 74 29 20 72 | 65 70 72 65 73 65 6e 74 | text) r|epresent|
|00000f00| 69 6e 67 20 74 68 65 20 | 69 6e 66 6f 72 6d 61 74 |ing the |informat|
|00000f10| 69 6f 6e 20 74 68 61 74 | 20 69 73 0a 20 20 20 20 |ion that| is. |
|00000f20| 75 73 75 61 6c 6c 79 20 | 70 72 69 6e 74 65 64 20 |usually |printed |
|00000f30| 66 6f 72 20 61 20 73 74 | 61 63 6b 20 74 72 61 63 |for a st|ack trac|
|00000f40| 65 2e 20 20 54 68 65 20 | 74 65 78 74 20 69 73 20 |e. The |text is |
|00000f50| 61 20 73 74 72 69 6e 67 | 20 77 69 74 68 0a 20 20 |a string| with. |
|00000f60| 20 20 6c 65 61 64 69 6e | 67 20 61 6e 64 20 74 72 | leadin|g and tr|
|00000f70| 61 69 6c 69 6e 67 20 77 | 68 69 74 65 73 70 61 63 |ailing w|hitespac|
|00000f80| 65 20 73 74 72 69 70 70 | 65 64 3b 20 69 66 20 74 |e stripp|ed; if t|
|00000f90| 68 65 20 73 6f 75 72 63 | 65 20 69 73 20 6e 6f 74 |he sourc|e is not|
|00000fa0| 0a 20 20 20 20 61 76 61 | 69 6c 61 62 6c 65 20 69 |. ava|ilable i|
|00000fb0| 74 20 69 73 20 4e 6f 6e | 65 2e 0a 20 20 20 20 52 |t is Non|e.. R|
|00000fc0| 21 00 00 00 69 00 00 00 | 00 69 01 00 00 00 4e 28 |!...i...|.i....N(|
|00000fd0| 10 00 00 00 52 14 00 00 | 00 52 22 00 00 00 52 15 |....R...|.R"...R.|
|00000fe0| 00 00 00 52 21 00 00 00 | 52 23 00 00 00 52 0d 00 |...R!...|R#...R..|
|00000ff0| 00 00 52 24 00 00 00 52 | 25 00 00 00 52 26 00 00 |..R$...R|%...R&..|
|00001000| 00 52 27 00 00 00 52 28 | 00 00 00 52 29 00 00 00 |.R'...R(|...R)...|
|00001010| 52 2a 00 00 00 52 17 00 | 00 00 52 1e 00 00 00 52 |R*...R..|..R....R|
|00001020| 2b 00 00 00 28 0a 00 00 | 00 52 2c 00 00 00 52 2d |+...(...|.R,...R-|
|00001030| 00 00 00 52 1f 00 00 00 | 52 2e 00 00 00 52 2f 00 |...R....|R....R/.|
|00001040| 00 00 52 1a 00 00 00 52 | 30 00 00 00 52 19 00 00 |..R....R|0...R...|
|00001050| 00 52 1b 00 00 00 52 1c | 00 00 00 28 00 00 00 00 |.R....R.|...(....|
|00001060| 28 00 00 00 00 73 0c 00 | 00 00 74 72 61 63 65 62 |(....s..|..traceb|
|00001070| 61 63 6b 2e 70 79 52 01 | 00 00 00 4e 00 00 00 73 |ack.pyR.|...N...s|
|00001080| 26 00 00 00 00 0b 0d 01 | 10 01 11 01 06 01 06 01 |&.......|........|
|00001090| 2a 01 09 01 09 01 09 01 | 09 01 09 01 0d 01 18 01 |*.......|........|
|000010a0| 17 01 06 01 19 01 09 01 | 0f 01 63 05 00 00 00 07 |........|..c.....|
|000010b0| 00 00 00 07 00 00 00 43 | 00 00 00 73 8e 00 00 00 |.......C|...s....|
|000010c0| 7c 04 00 64 05 00 6a 08 | 00 6f 0d 00 01 74 01 00 ||..d..j.|.o...t..|
|000010d0| 69 02 00 7d 04 00 6e 01 | 00 01 7c 02 00 6f 21 00 |i..}..n.|..|..o!.|
|000010e0| 01 74 03 00 7c 04 00 64 | 01 00 83 02 00 01 74 04 |.t..|..d|......t.|
|000010f0| 00 7c 02 00 7c 03 00 7c | 04 00 83 03 00 01 6e 01 |.|..|..||......n.|
|00001100| 00 01 74 05 00 7c 00 00 | 7c 01 00 83 02 00 7d 05 |..t..|..||.....}.|
|00001110| 00 78 22 00 7c 05 00 64 | 02 00 20 44 5d 16 00 7d |.x".|..d|.. D]..}|
|00001120| 06 00 74 03 00 7c 04 00 | 7c 06 00 64 03 00 83 03 |..t..|..||..d....|
|00001130| 00 01 71 5c 00 57 74 03 | 00 7c 04 00 7c 05 00 64 |..q\.Wt.|.|..|..d|
|00001140| 02 00 19 64 04 00 83 03 | 00 01 64 05 00 53 28 06 |...d....|..d..S(.|
|00001150| 00 00 00 73 f9 01 00 00 | 50 72 69 6e 74 20 65 78 |...s....|Print ex|
|00001160| 63 65 70 74 69 6f 6e 20 | 75 70 20 74 6f 20 27 6c |ception |up to 'l|
|00001170| 69 6d 69 74 27 20 73 74 | 61 63 6b 20 74 72 61 63 |imit' st|ack trac|
|00001180| 65 20 65 6e 74 72 69 65 | 73 20 66 72 6f 6d 20 27 |e entrie|s from '|
|00001190| 74 62 27 20 74 6f 20 27 | 66 69 6c 65 27 2e 0a 0a |tb' to '|file'...|
|000011a0| 20 20 20 20 54 68 69 73 | 20 64 69 66 66 65 72 73 | This| differs|
|000011b0| 20 66 72 6f 6d 20 70 72 | 69 6e 74 5f 74 62 28 29 | from pr|int_tb()|
|000011c0| 20 69 6e 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e | in the |followin|
|000011d0| 67 20 77 61 79 73 3a 20 | 28 31 29 20 69 66 0a 20 |g ways: |(1) if. |
|000011e0| 20 20 20 74 72 61 63 65 | 62 61 63 6b 20 69 73 20 | trace|back is |
|000011f0| 6e 6f 74 20 4e 6f 6e 65 | 2c 20 69 74 20 70 72 69 |not None|, it pri|
|00001200| 6e 74 73 20 61 20 68 65 | 61 64 65 72 20 22 54 72 |nts a he|ader "Tr|
|00001210| 61 63 65 62 61 63 6b 20 | 28 6d 6f 73 74 20 72 65 |aceback |(most re|
|00001220| 63 65 6e 74 0a 20 20 20 | 20 63 61 6c 6c 20 6c 61 |cent. | call la|
|00001230| 73 74 29 3a 22 3b 20 28 | 32 29 20 69 74 20 70 72 |st):"; (|2) it pr|
|00001240| 69 6e 74 73 20 74 68 65 | 20 65 78 63 65 70 74 69 |ints the| excepti|
|00001250| 6f 6e 20 74 79 70 65 20 | 61 6e 64 20 76 61 6c 75 |on type |and valu|
|00001260| 65 20 61 66 74 65 72 20 | 74 68 65 0a 20 20 20 20 |e after |the. |
|00001270| 73 74 61 63 6b 20 74 72 | 61 63 65 3b 20 28 33 29 |stack tr|ace; (3)|
|00001280| 20 69 66 20 74 79 70 65 | 20 69 73 20 53 79 6e 74 | if type| is Synt|
|00001290| 61 78 45 72 72 6f 72 20 | 61 6e 64 20 76 61 6c 75 |axError |and valu|
|000012a0| 65 20 68 61 73 20 74 68 | 65 0a 20 20 20 20 61 70 |e has th|e. ap|
|000012b0| 70 72 6f 70 72 69 61 74 | 65 20 66 6f 72 6d 61 74 |propriat|e format|
|000012c0| 2c 20 69 74 20 70 72 69 | 6e 74 73 20 74 68 65 20 |, it pri|nts the |
|000012d0| 6c 69 6e 65 20 77 68 65 | 72 65 20 74 68 65 20 73 |line whe|re the s|
|000012e0| 79 6e 74 61 78 20 65 72 | 72 6f 72 0a 20 20 20 20 |yntax er|ror. |
|000012f0| 6f 63 63 75 72 72 65 64 | 20 77 69 74 68 20 61 20 |occurred| with a |
|00001300| 63 61 72 65 74 20 6f 6e | 20 74 68 65 20 6e 65 78 |caret on| the nex|
|00001310| 74 20 6c 69 6e 65 20 69 | 6e 64 69 63 61 74 69 6e |t line i|ndicatin|
|00001320| 67 20 74 68 65 20 61 70 | 70 72 6f 78 69 6d 61 74 |g the ap|proximat|
|00001330| 65 0a 20 20 20 20 70 6f | 73 69 74 69 6f 6e 20 6f |e. po|sition o|
|00001340| 66 20 74 68 65 20 65 72 | 72 6f 72 2e 0a 20 20 20 |f the er|ror.. |
|00001350| 20 73 22 00 00 00 54 72 | 61 63 65 62 61 63 6b 20 | s"...Tr|aceback |
|00001360| 28 6d 6f 73 74 20 72 65 | 63 65 6e 74 20 63 61 6c |(most re|cent cal|
|00001370| 6c 20 6c 61 73 74 29 3a | 69 ff ff ff ff 74 01 00 |l last):|i....t..|
|00001380| 00 00 20 52 0e 00 00 00 | 4e 28 06 00 00 00 52 14 |.. R....|N(....R.|
|00001390| 00 00 00 52 15 00 00 00 | 52 16 00 00 00 52 13 00 |...R....|R....R..|
|000013a0| 00 00 52 0c 00 00 00 52 | 03 00 00 00 28 07 00 00 |..R....R|....(...|
|000013b0| 00 74 05 00 00 00 65 74 | 79 70 65 74 05 00 00 00 |.t....et|ypet....|
|000013c0| 76 61 6c 75 65 52 2c 00 | 00 00 52 2d 00 00 00 52 |valueR,.|..R-...R|
|000013d0| 10 00 00 00 74 05 00 00 | 00 6c 69 6e 65 73 52 1c |....t...|.linesR.|
|000013e0| 00 00 00 28 00 00 00 00 | 28 00 00 00 00 73 0c 00 |...(....|(....s..|
|000013f0| 00 00 74 72 61 63 65 62 | 61 63 6b 2e 70 79 52 09 |..traceb|ack.pyR.|
|00001400| 00 00 00 6e 00 00 00 73 | 14 00 00 00 00 0b 0d 01 |...n...s|........|
|00001410| 0d 01 07 01 0d 01 14 01 | 0f 01 0b 00 06 01 14 01 |........|........|
|00001420| 63 04 00 00 00 05 00 00 | 00 04 00 00 00 43 00 00 |c.......|.....C..|
|00001430| 00 73 44 00 00 00 7c 02 | 00 6f 20 00 01 64 01 00 |.sD...|.|.o ..d..|
|00001440| 67 01 00 7d 04 00 7c 04 | 00 74 00 00 7c 02 00 7c |g..}..|.|.t..|..||
|00001450| 03 00 83 02 00 17 7d 04 | 00 6e 07 00 01 67 00 00 |......}.|.n...g..|
|00001460| 7d 04 00 7c 04 00 74 01 | 00 7c 00 00 7c 01 00 83 |}..|..t.|.|..|...|
|00001470| 02 00 17 7d 04 00 7c 04 | 00 53 28 02 00 00 00 73 |...}..|.|.S(....s|
|00001480| 7a 01 00 00 46 6f 72 6d | 61 74 20 61 20 73 74 61 |z...Form|at a sta|
|00001490| 63 6b 20 74 72 61 63 65 | 20 61 6e 64 20 74 68 65 |ck trace| and the|
|000014a0| 20 65 78 63 65 70 74 69 | 6f 6e 20 69 6e 66 6f 72 | excepti|on infor|
|000014b0| 6d 61 74 69 6f 6e 2e 0a | 0a 20 20 20 20 54 68 65 |mation..|. The|
|000014c0| 20 61 72 67 75 6d 65 6e | 74 73 20 68 61 76 65 20 | argumen|ts have |
|000014d0| 74 68 65 20 73 61 6d 65 | 20 6d 65 61 6e 69 6e 67 |the same| meaning|
|000014e0| 20 61 73 20 74 68 65 20 | 63 6f 72 72 65 73 70 6f | as the |correspo|
|000014f0| 6e 64 69 6e 67 20 61 72 | 67 75 6d 65 6e 74 73 0a |nding ar|guments.|
|00001500| 20 20 20 20 74 6f 20 70 | 72 69 6e 74 5f 65 78 63 | to p|rint_exc|
|00001510| 65 70 74 69 6f 6e 28 29 | 2e 20 20 54 68 65 20 72 |eption()|. The r|
|00001520| 65 74 75 72 6e 20 76 61 | 6c 75 65 20 69 73 20 61 |eturn va|lue is a|
|00001530| 20 6c 69 73 74 20 6f 66 | 20 73 74 72 69 6e 67 73 | list of| strings|
|00001540| 2c 20 65 61 63 68 0a 20 | 20 20 20 65 6e 64 69 6e |, each. | endin|
|00001550| 67 20 69 6e 20 61 20 6e | 65 77 6c 69 6e 65 20 61 |g in a n|ewline a|
|00001560| 6e 64 20 73 6f 6d 65 20 | 63 6f 6e 74 61 69 6e 69 |nd some |containi|
|00001570| 6e 67 20 69 6e 74 65 72 | 6e 61 6c 20 6e 65 77 6c |ng inter|nal newl|
|00001580| 69 6e 65 73 2e 20 20 57 | 68 65 6e 0a 20 20 20 20 |ines. W|hen. |
|00001590| 74 68 65 73 65 20 6c 69 | 6e 65 73 20 61 72 65 20 |these li|nes are |
|000015a0| 63 6f 6e 63 61 74 65 6e | 61 74 65 64 20 61 6e 64 |concaten|ated and|
|000015b0| 20 70 72 69 6e 74 65 64 | 2c 20 65 78 61 63 74 6c | printed|, exactl|
|000015c0| 79 20 74 68 65 20 73 61 | 6d 65 20 74 65 78 74 20 |y the sa|me text |
|000015d0| 69 73 0a 20 20 20 20 70 | 72 69 6e 74 65 64 20 61 |is. p|rinted a|
|000015e0| 73 20 64 6f 65 73 20 70 | 72 69 6e 74 5f 65 78 63 |s does p|rint_exc|
|000015f0| 65 70 74 69 6f 6e 28 29 | 2e 0a 20 20 20 20 73 23 |eption()|.. s#|
|00001600| 00 00 00 54 72 61 63 65 | 62 61 63 6b 20 28 6d 6f |...Trace|back (mo|
|00001610| 73 74 20 72 65 63 65 6e | 74 20 63 61 6c 6c 20 6c |st recen|t call l|
|00001620| 61 73 74 29 3a 0a 28 02 | 00 00 00 52 06 00 00 00 |ast):.(.|...R....|
|00001630| 52 03 00 00 00 28 05 00 | 00 00 52 32 00 00 00 52 |R....(..|..R2...R|
|00001640| 33 00 00 00 52 2c 00 00 | 00 52 2d 00 00 00 52 1f |3...R,..|.R-...R.|
|00001650| 00 00 00 28 00 00 00 00 | 28 00 00 00 00 73 0c 00 |...(....|(....s..|
|00001660| 00 00 74 72 61 63 65 62 | 61 63 6b 2e 70 79 52 02 |..traceb|ack.pyR.|
|00001670| 00 00 00 83 00 00 00 73 | 0c 00 00 00 00 09 07 01 |.......s|........|
|00001680| 09 01 17 02 06 01 13 01 | 63 02 00 00 00 0a 00 00 |........|c.......|
|00001690| 00 08 00 00 00 43 00 00 | 00 73 73 01 00 00 74 00 |.....C..|.ss...t.|
|000016a0| 00 7c 00 00 74 01 00 83 | 02 00 70 33 00 01 74 00 |.|..t...|..p3..t.|
|000016b0| 00 7c 00 00 74 02 00 69 | 03 00 83 02 00 70 20 00 |.|..t..i|.....p .|
|000016c0| 01 7c 00 00 64 07 00 6a | 08 00 70 13 00 01 74 05 |.|..d..j|..p...t.|
|000016d0| 00 7c 00 00 83 01 00 74 | 06 00 6a 08 00 6f 14 00 |.|.....t|..j..o..|
|000016e0| 01 74 07 00 7c 00 00 7c | 01 00 83 02 00 67 01 00 |.t..|..||.....g..|
|000016f0| 53 6e 01 00 01 7c 00 00 | 69 08 00 7d 02 00 74 09 |Sn...|..|i..}..t.|
|00001700| 00 7c 00 00 74 0a 00 83 | 02 00 70 14 00 01 74 07 |.|..t...|..p...t.|
|00001710| 00 7c 02 00 7c 01 00 83 | 02 00 67 01 00 53 6e 01 |.|..|...|..g..Sn.|
|00001720| 00 01 67 00 00 7d 03 00 | 79 1c 00 7c 01 00 5c 02 |..g..}..|y..|..\.|
|00001730| 00 7d 04 00 5c 04 00 7d | 05 00 7d 06 00 7d 07 00 |.}..\..}|..}..}..|
|00001740| 7d 08 00 57 6e 13 00 04 | 74 0b 00 6a 0a 00 6f 07 |}..Wn...|t..j..o.|
|00001750| 00 01 01 01 01 6e 9f 00 | 01 58 7c 05 00 70 04 00 |.....n..|.X|..p..|
|00001760| 01 64 01 00 7d 05 00 7c | 03 00 69 0c 00 64 02 00 |.d..}..||..i..d..|
|00001770| 7c 05 00 7c 06 00 66 02 | 00 16 83 01 00 01 7c 08 ||..|..f.|......|.|
|00001780| 00 64 07 00 6a 09 00 6f | 6c 00 01 7c 03 00 69 0c |.d..j..o|l..|..i.|
|00001790| 00 64 03 00 7c 08 00 69 | 0d 00 83 00 00 16 83 01 |.d..|..i|........|
|000017a0| 00 01 7c 07 00 64 07 00 | 6a 09 00 6f 3e 00 01 7c |..|..d..|j..o>..||
|000017b0| 08 00 7c 07 00 20 69 0e | 00 83 00 00 7d 09 00 64 |..|.. i.|....}..d|
|000017c0| 04 00 84 00 00 7c 09 00 | 44 83 01 00 7d 09 00 7c |.....|..|D...}..||
|000017d0| 03 00 69 0c 00 64 05 00 | 64 06 00 69 0f 00 7c 09 |..i..d..|d..i..|.|
|000017e0| 00 83 01 00 16 83 01 00 | 01 6e 01 00 01 7c 04 00 |........|.n...|..|
|000017f0| 7d 01 00 6e 01 00 01 7c | 03 00 69 0c 00 74 07 00 |}..n...||..i..t..|
|00001800| 7c 02 00 7c 01 00 83 02 | 00 83 01 00 01 7c 03 00 ||..|....|.....|..|
|00001810| 53 28 08 00 00 00 73 14 | 02 00 00 46 6f 72 6d 61 |S(....s.|...Forma|
|00001820| 74 20 74 68 65 20 65 78 | 63 65 70 74 69 6f 6e 20 |t the ex|ception |
|00001830| 70 61 72 74 20 6f 66 20 | 61 20 74 72 61 63 65 62 |part of |a traceb|
|00001840| 61 63 6b 2e 0a 0a 20 20 | 20 20 54 68 65 20 61 72 |ack... | The ar|
|00001850| 67 75 6d 65 6e 74 73 20 | 61 72 65 20 74 68 65 20 |guments |are the |
|00001860| 65 78 63 65 70 74 69 6f | 6e 20 74 79 70 65 20 61 |exceptio|n type a|
|00001870| 6e 64 20 76 61 6c 75 65 | 20 73 75 63 68 20 61 73 |nd value| such as|
|00001880| 20 67 69 76 65 6e 20 62 | 79 0a 20 20 20 20 73 79 | given b|y. sy|
|00001890| 73 2e 6c 61 73 74 5f 74 | 79 70 65 20 61 6e 64 20 |s.last_t|ype and |
|000018a0| 73 79 73 2e 6c 61 73 74 | 5f 76 61 6c 75 65 2e 20 |sys.last|_value. |
|000018b0| 54 68 65 20 72 65 74 75 | 72 6e 20 76 61 6c 75 65 |The retu|rn value|
|000018c0| 20 69 73 20 61 20 6c 69 | 73 74 20 6f 66 0a 20 20 | is a li|st of. |
|000018d0| 20 20 73 74 72 69 6e 67 | 73 2c 20 65 61 63 68 20 | string|s, each |
|000018e0| 65 6e 64 69 6e 67 20 69 | 6e 20 61 20 6e 65 77 6c |ending i|n a newl|
|000018f0| 69 6e 65 2e 0a 0a 20 20 | 20 20 4e 6f 72 6d 61 6c |ine... | Normal|
|00001900| 6c 79 2c 20 74 68 65 20 | 6c 69 73 74 20 63 6f 6e |ly, the |list con|
|00001910| 74 61 69 6e 73 20 61 20 | 73 69 6e 67 6c 65 20 73 |tains a |single s|
|00001920| 74 72 69 6e 67 3b 20 68 | 6f 77 65 76 65 72 2c 20 |tring; h|owever, |
|00001930| 66 6f 72 0a 20 20 20 20 | 53 79 6e 74 61 78 45 72 |for. |SyntaxEr|
|00001940| 72 6f 72 20 65 78 63 65 | 70 74 69 6f 6e 73 2c 20 |ror exce|ptions, |
|00001950| 69 74 20 63 6f 6e 74 61 | 69 6e 73 20 73 65 76 65 |it conta|ins seve|
|00001960| 72 61 6c 20 6c 69 6e 65 | 73 20 74 68 61 74 20 28 |ral line|s that (|
|00001970| 77 68 65 6e 0a 20 20 20 | 20 70 72 69 6e 74 65 64 |when. | printed|
|00001980| 29 20 64 69 73 70 6c 61 | 79 20 64 65 74 61 69 6c |) displa|y detail|
|00001990| 65 64 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 61 |ed infor|mation a|
|000019a0| 62 6f 75 74 20 77 68 65 | 72 65 20 74 68 65 20 73 |bout whe|re the s|
|000019b0| 79 6e 74 61 78 0a 20 20 | 20 20 65 72 72 6f 72 20 |yntax. | error |
|000019c0| 6f 63 63 75 72 72 65 64 | 2e 0a 0a 20 20 20 20 54 |occurred|... T|
|000019d0| 68 65 20 6d 65 73 73 61 | 67 65 20 69 6e 64 69 63 |he messa|ge indic|
|000019e0| 61 74 69 6e 67 20 77 68 | 69 63 68 20 65 78 63 65 |ating wh|ich exce|
|000019f0| 70 74 69 6f 6e 20 6f 63 | 63 75 72 72 65 64 20 69 |ption oc|curred i|
|00001a00| 73 20 61 6c 77 61 79 73 | 20 74 68 65 20 6c 61 73 |s always| the las|
|00001a10| 74 0a 20 20 20 20 73 74 | 72 69 6e 67 20 69 6e 20 |t. st|ring in |
|00001a20| 74 68 65 20 6c 69 73 74 | 2e 0a 0a 20 20 20 20 73 |the list|... s|
|00001a30| 08 00 00 00 3c 73 74 72 | 69 6e 67 3e 73 15 00 00 |....<str|ing>s...|
|00001a40| 00 20 20 46 69 6c 65 20 | 22 25 73 22 2c 20 6c 69 |. File |"%s", li|
|00001a50| 6e 65 20 25 64 0a 73 07 | 00 00 00 20 20 20 20 25 |ne %d.s.|... %|
|00001a60| 73 0a 63 01 00 00 00 02 | 00 00 00 03 00 00 00 73 |s.c.....|.......s|
|00001a70| 00 00 00 73 2d 00 00 00 | 78 26 00 7c 00 00 5d 1f |...s-...|x&.|..].|
|00001a80| 00 7d 01 00 7c 01 00 69 | 00 00 83 00 00 6f 07 00 |.}..|..i|.....o..|
|00001a90| 01 7c 01 00 70 04 00 01 | 64 00 00 56 01 71 06 00 |.|..p...|d..V.q..|
|00001aa0| 57 64 01 00 53 28 02 00 | 00 00 52 31 00 00 00 4e |Wd..S(..|..R1...N|
|00001ab0| 28 01 00 00 00 74 07 00 | 00 00 69 73 73 70 61 63 |(....t..|..isspac|
|00001ac0| 65 28 02 00 00 00 74 02 | 00 00 00 2e 30 74 01 00 |e(....t.|....0t..|
|00001ad0| 00 00 63 28 00 00 00 00 | 28 00 00 00 00 73 0c 00 |..c(....|(....s..|
|00001ae0| 00 00 74 72 61 63 65 62 | 61 63 6b 2e 70 79 73 09 |..traceb|ack.pys.|
|00001af0| 00 00 00 3c 67 65 6e 65 | 78 70 72 3e c3 00 00 00 |...<gene|xpr>....|
|00001b00| 73 00 00 00 00 73 07 00 | 00 00 20 20 20 25 73 5e |s....s..|.. %s^|
|00001b10| 0a 52 0e 00 00 00 4e 28 | 10 00 00 00 74 0a 00 00 |.R....N(|....t...|
|00001b20| 00 69 73 69 6e 73 74 61 | 6e 63 65 74 0d 00 00 00 |.isinsta|ncet....|
|00001b30| 42 61 73 65 45 78 63 65 | 70 74 69 6f 6e 74 05 00 |BaseExce|ptiont..|
|00001b40| 00 00 74 79 70 65 73 74 | 0c 00 00 00 49 6e 73 74 |..typest|....Inst|
|00001b50| 61 6e 63 65 54 79 70 65 | 52 14 00 00 00 74 04 00 |anceType|R....t..|
|00001b60| 00 00 74 79 70 65 52 11 | 00 00 00 74 16 00 00 00 |..typeR.|...t....|
|00001b70| 5f 66 6f 72 6d 61 74 5f | 66 69 6e 61 6c 5f 65 78 |_format_|final_ex|
|00001b80| 63 5f 6c 69 6e 65 74 08 | 00 00 00 5f 5f 6e 61 6d |c_linet.|...__nam|
|00001b90| 65 5f 5f 74 0a 00 00 00 | 69 73 73 75 62 63 6c 61 |e__t....|issubcla|
|00001ba0| 73 73 74 0b 00 00 00 53 | 79 6e 74 61 78 45 72 72 |sst....S|yntaxErr|
|00001bb0| 6f 72 74 09 00 00 00 45 | 78 63 65 70 74 69 6f 6e |ort....E|xception|
|00001bc0| 52 1e 00 00 00 52 17 00 | 00 00 74 06 00 00 00 6c |R....R..|..t....l|
|00001bd0| 73 74 72 69 70 74 04 00 | 00 00 6a 6f 69 6e 28 0a |stript..|..join(.|
|00001be0| 00 00 00 52 32 00 00 00 | 52 33 00 00 00 74 05 00 |...R2...|R3...t..|
|00001bf0| 00 00 73 74 79 70 65 52 | 34 00 00 00 74 03 00 00 |..stypeR|4...t...|
|00001c00| 00 6d 73 67 52 19 00 00 | 00 52 1a 00 00 00 74 06 |.msgR...|.R....t.|
|00001c10| 00 00 00 6f 66 66 73 65 | 74 74 07 00 00 00 62 61 |...offse|tt....ba|
|00001c20| 64 6c 69 6e 65 74 0a 00 | 00 00 63 61 72 65 74 73 |dlinet..|..carets|
|00001c30| 70 61 63 65 28 00 00 00 | 00 28 00 00 00 00 73 0c |pace(...|.(....s.|
|00001c40| 00 00 00 74 72 61 63 65 | 62 61 63 6b 2e 70 79 52 |...trace|back.pyR|
|00001c50| 03 00 00 00 94 00 00 00 | 73 2e 00 00 00 00 17 10 |........|s.......|
|00001c60| 01 13 01 20 01 14 02 09 | 02 10 01 14 03 06 01 03 |... ....|........|
|00001c70| 01 1c 01 0e 01 05 02 0d | 01 17 01 0d 01 17 01 0d |........|........|
|00001c80| 01 10 02 10 02 1e 01 0a | 02 16 01 63 02 00 00 00 |........|...c....|
|00001c90| 04 00 00 00 03 00 00 00 | 43 00 00 00 73 43 00 00 |........|C...sC..|
|00001ca0| 00 74 00 00 7c 01 00 83 | 01 00 7d 02 00 7c 01 00 |.t..|...|..}..|..|
|00001cb0| 64 03 00 6a 08 00 70 08 | 00 01 7c 02 00 0c 6f 0e |d..j..p.|..|...o.|
|00001cc0| 00 01 64 01 00 7c 00 00 | 16 7d 03 00 6e 11 00 01 |..d..|..|.}..n...|
|00001cd0| 64 02 00 7c 00 00 7c 02 | 00 66 02 00 16 7d 03 00 |d..|..|.|.f...}..|
|00001ce0| 7c 03 00 53 28 04 00 00 | 00 73 47 00 00 00 52 65 ||..S(...|.sG...Re|
|00001cf0| 74 75 72 6e 20 61 20 6c | 69 73 74 20 6f 66 20 61 |turn a l|ist of a|
|00001d00| 20 73 69 6e 67 6c 65 20 | 6c 69 6e 65 20 2d 2d 20 | single |line -- |
|00001d10| 6e 6f 72 6d 61 6c 20 63 | 61 73 65 20 66 6f 72 20 |normal c|ase for |
|00001d20| 66 6f 72 6d 61 74 5f 65 | 78 63 65 70 74 69 6f 6e |format_e|xception|
|00001d30| 5f 6f 6e 6c 79 73 03 00 | 00 00 25 73 0a 73 07 00 |_onlys..|..%s.s..|
|00001d40| 00 00 25 73 3a 20 25 73 | 0a 4e 28 02 00 00 00 74 |..%s: %s|.N(....t|
|00001d50| 09 00 00 00 5f 73 6f 6d | 65 5f 73 74 72 52 14 00 |...._som|e_strR..|
|00001d60| 00 00 28 04 00 00 00 52 | 32 00 00 00 52 33 00 00 |..(....R|2...R3..|
|00001d70| 00 74 08 00 00 00 76 61 | 6c 75 65 73 74 72 52 1c |.t....va|luestrR.|
|00001d80| 00 00 00 28 00 00 00 00 | 28 00 00 00 00 73 0c 00 |...(....|(....s..|
|00001d90| 00 00 74 72 61 63 65 62 | 61 63 6b 2e 70 79 52 3d |..traceb|ack.pyR=|
|00001da0| 00 00 00 cb 00 00 00 73 | 0a 00 00 00 00 02 0c 01 |.......s|........|
|00001db0| 15 01 0e 02 10 01 63 01 | 00 00 00 01 00 00 00 05 |......c.|........|
|00001dc0| 00 00 00 43 00 00 00 73 | 2d 00 00 00 79 0e 00 74 |...C...s|-...y..t|
|00001dd0| 00 00 7c 00 00 83 01 00 | 53 57 6e 18 00 01 01 01 |..|.....|SWn.....|
|00001de0| 64 01 00 74 01 00 7c 00 | 00 83 01 00 69 02 00 16 |d..t..|.|....i...|
|00001df0| 53 6e 01 00 58 64 00 00 | 53 28 02 00 00 00 4e 73 |Sn..Xd..|S(....Ns|
|00001e00| 17 00 00 00 3c 75 6e 70 | 72 69 6e 74 61 62 6c 65 |....<unp|rintable|
|00001e10| 20 25 73 20 6f 62 6a 65 | 63 74 3e 28 03 00 00 00 | %s obje|ct>(....|
|00001e20| 52 11 00 00 00 52 3c 00 | 00 00 52 3e 00 00 00 28 |R....R<.|..R>...(|
|00001e30| 01 00 00 00 52 33 00 00 | 00 28 00 00 00 00 28 00 |....R3..|.(....(.|
|00001e40| 00 00 00 73 0c 00 00 00 | 74 72 61 63 65 62 61 63 |...s....|tracebac|
|00001e50| 6b 2e 70 79 52 49 00 00 | 00 d4 00 00 00 73 08 00 |k.pyRI..|.....s..|
|00001e60| 00 00 00 01 03 01 0e 01 | 03 01 63 02 00 00 00 05 |........|..c.....|
|00001e70| 00 00 00 09 00 00 00 43 | 00 00 00 73 5f 00 00 00 |.......C|...s_...|
|00001e80| 7c 01 00 64 01 00 6a 08 | 00 6f 0d 00 01 74 01 00 ||..d..j.|.o...t..|
|00001e90| 69 02 00 7d 01 00 6e 01 | 00 01 7a 2f 00 74 01 00 |i..}..n.|..z/.t..|
|00001ea0| 69 03 00 83 00 00 5c 03 | 00 7d 02 00 7d 03 00 7d |i.....\.|.}..}..}|
|00001eb0| 04 00 74 04 00 7c 02 00 | 7c 03 00 7c 04 00 7c 00 |..t..|..||..|..|.|
|00001ec0| 00 7c 01 00 83 05 00 01 | 57 64 01 00 64 01 00 04 |.|......|Wd..d...|
|00001ed0| 7d 02 00 04 7d 03 00 7d | 04 00 58 64 01 00 53 28 |}...}..}|..Xd..S(|
|00001ee0| 02 00 00 00 73 be 00 00 | 00 53 68 6f 72 74 68 61 |....s...|.Shortha|
|00001ef0| 6e 64 20 66 6f 72 20 27 | 70 72 69 6e 74 5f 65 78 |nd for '|print_ex|
|00001f00| 63 65 70 74 69 6f 6e 28 | 73 79 73 2e 65 78 63 5f |ception(|sys.exc_|
|00001f10| 74 79 70 65 2c 20 73 79 | 73 2e 65 78 63 5f 76 61 |type, sy|s.exc_va|
|00001f20| 6c 75 65 2c 20 73 79 73 | 2e 65 78 63 5f 74 72 61 |lue, sys|.exc_tra|
|00001f30| 63 65 62 61 63 6b 2c 20 | 6c 69 6d 69 74 2c 20 66 |ceback, |limit, f|
|00001f40| 69 6c 65 29 27 2e 0a 20 | 20 20 20 28 49 6e 20 66 |ile)'.. | (In f|
|00001f50| 61 63 74 2c 20 69 74 20 | 75 73 65 73 20 73 79 73 |act, it |uses sys|
|00001f60| 2e 65 78 63 5f 69 6e 66 | 6f 28 29 20 74 6f 20 72 |.exc_inf|o() to r|
|00001f70| 65 74 72 69 65 76 65 20 | 74 68 65 20 73 61 6d 65 |etrieve |the same|
|00001f80| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 0a 20 20 20 | informa|tion. |
|00001f90| 20 69 6e 20 61 20 74 68 | 72 65 61 64 2d 73 61 66 | in a th|read-saf|
|00001fa0| 65 20 77 61 79 2e 29 4e | 28 05 00 00 00 52 14 00 |e way.)N|(....R..|
|00001fb0| 00 00 52 15 00 00 00 52 | 16 00 00 00 74 08 00 00 |..R....R|....t...|
|00001fc0| 00 65 78 63 5f 69 6e 66 | 6f 52 09 00 00 00 28 05 |.exc_inf|oR....(.|
|00001fd0| 00 00 00 52 2d 00 00 00 | 52 10 00 00 00 52 32 00 |...R-...|R....R2.|
|00001fe0| 00 00 52 33 00 00 00 52 | 2c 00 00 00 28 00 00 00 |..R3...R|,...(...|
|00001ff0| 00 28 00 00 00 00 73 0c | 00 00 00 74 72 61 63 65 |.(....s.|...trace|
|00002000| 62 61 63 6b 2e 70 79 52 | 07 00 00 00 db 00 00 00 |back.pyR|........|
|00002010| 73 0c 00 00 00 00 04 0d | 01 0d 01 03 01 15 01 1a |s.......|........|
|00002020| 02 63 01 00 00 00 04 00 | 00 00 09 00 00 00 43 00 |.c......|......C.|
|00002030| 00 00 73 4b 00 00 00 7a | 35 00 74 00 00 69 01 00 |..sK...z|5.t..i..|
|00002040| 83 00 00 5c 03 00 7d 01 | 00 7d 02 00 7d 03 00 64 |...\..}.|.}..}..d|
|00002050| 01 00 69 02 00 74 03 00 | 7c 01 00 7c 02 00 7c 03 |..i..t..||..|..|.|
|00002060| 00 7c 00 00 83 04 00 83 | 01 00 53 57 64 02 00 64 |.|......|..SWd..d|
|00002070| 02 00 04 7d 01 00 04 7d | 02 00 7d 03 00 58 64 02 |...}...}|..}..Xd.|
|00002080| 00 53 28 03 00 00 00 73 | 25 00 00 00 4c 69 6b 65 |.S(....s|%...Like|
|00002090| 20 70 72 69 6e 74 5f 65 | 78 63 28 29 20 62 75 74 | print_e|xc() but|
|000020a0| 20 72 65 74 75 72 6e 20 | 61 20 73 74 72 69 6e 67 | return |a string|
|000020b0| 2e 52 0e 00 00 00 4e 28 | 05 00 00 00 52 15 00 00 |.R....N(|....R...|
|000020c0| 00 52 4b 00 00 00 52 43 | 00 00 00 52 02 00 00 00 |.RK...RC|...R....|
|000020d0| 52 14 00 00 00 28 04 00 | 00 00 52 2d 00 00 00 52 |R....(..|..R-...R|
|000020e0| 32 00 00 00 52 33 00 00 | 00 52 2c 00 00 00 28 00 |2...R3..|.R,...(.|
|000020f0| 00 00 00 28 00 00 00 00 | 73 0c 00 00 00 74 72 61 |...(....|s....tra|
|00002100| 63 65 62 61 63 6b 2e 70 | 79 52 08 00 00 00 e8 00 |ceback.p|yR......|
|00002110| 00 00 73 08 00 00 00 00 | 02 03 01 15 01 20 02 63 |..s.....|..... .c|
|00002120| 02 00 00 00 02 00 00 00 | 06 00 00 00 43 00 00 00 |........|....C...|
|00002130| 73 3d 00 00 00 7c 01 00 | 64 01 00 6a 08 00 6f 0d |s=...|..|d..j..o.|
|00002140| 00 01 74 01 00 69 02 00 | 7d 01 00 6e 01 00 01 74 |..t..i..|}..n...t|
|00002150| 03 00 74 01 00 69 04 00 | 74 01 00 69 05 00 74 01 |..t..i..|t..i..t.|
|00002160| 00 69 06 00 7c 00 00 7c | 01 00 83 05 00 01 64 01 |.i..|..||......d.|
|00002170| 00 53 28 02 00 00 00 73 | 6e 00 00 00 54 68 69 73 |.S(....s|n...This|
|00002180| 20 69 73 20 61 20 73 68 | 6f 72 74 68 61 6e 64 20 | is a sh|orthand |
|00002190| 66 6f 72 20 27 70 72 69 | 6e 74 5f 65 78 63 65 70 |for 'pri|nt_excep|
|000021a0| 74 69 6f 6e 28 73 79 73 | 2e 6c 61 73 74 5f 74 79 |tion(sys|.last_ty|
|000021b0| 70 65 2c 0a 20 20 20 20 | 73 79 73 2e 6c 61 73 74 |pe,. |sys.last|
|000021c0| 5f 76 61 6c 75 65 2c 20 | 73 79 73 2e 6c 61 73 74 |_value, |sys.last|
|000021d0| 5f 74 72 61 63 65 62 61 | 63 6b 2c 20 6c 69 6d 69 |_traceba|ck, limi|
|000021e0| 74 2c 20 66 69 6c 65 29 | 27 2e 4e 28 07 00 00 00 |t, file)|'.N(....|
|000021f0| 52 14 00 00 00 52 15 00 | 00 00 52 16 00 00 00 52 |R....R..|..R....R|
|00002200| 09 00 00 00 74 09 00 00 | 00 6c 61 73 74 5f 74 79 |....t...|.last_ty|
|00002210| 70 65 74 0a 00 00 00 6c | 61 73 74 5f 76 61 6c 75 |pet....l|ast_valu|
|00002220| 65 74 0e 00 00 00 6c 61 | 73 74 5f 74 72 61 63 65 |et....la|st_trace|
|00002230| 62 61 63 6b 28 02 00 00 | 00 52 2d 00 00 00 52 10 |back(...|.R-...R.|
|00002240| 00 00 00 28 00 00 00 00 | 28 00 00 00 00 73 0c 00 |...(....|(....s..|
|00002250| 00 00 74 72 61 63 65 62 | 61 63 6b 2e 70 79 52 0a |..traceb|ack.pyR.|
|00002260| 00 00 00 f1 00 00 00 73 | 08 00 00 00 00 03 0d 01 |.......s|........|
|00002270| 0d 01 15 01 63 03 00 00 | 00 03 00 00 00 07 00 00 |....c...|........|
|00002280| 00 43 00 00 00 73 61 00 | 00 00 7c 00 00 64 02 00 |.C...sa.|..|..d..|
|00002290| 6a 08 00 6f 3a 00 01 79 | 0a 00 74 01 00 82 01 00 |j..o:..y|..t.....|
|000022a0| 57 71 47 00 04 74 01 00 | 6a 0a 00 6f 1d 00 01 01 |WqG..t..|j..o....|
|000022b0| 01 01 74 02 00 69 03 00 | 83 00 00 64 01 00 19 69 |..t..i..|...d...i|
|000022c0| 04 00 69 05 00 7d 00 00 | 71 47 00 01 58 6e 01 00 |..i..}..|qG..Xn..|
|000022d0| 01 74 06 00 74 07 00 7c | 00 00 7c 01 00 83 02 00 |.t..t..||..|.....|
|000022e0| 7c 02 00 83 02 00 01 64 | 02 00 53 28 03 00 00 00 ||......d|..S(....|
|000022f0| 73 f7 00 00 00 50 72 69 | 6e 74 20 61 20 73 74 61 |s....Pri|nt a sta|
|00002300| 63 6b 20 74 72 61 63 65 | 20 66 72 6f 6d 20 69 74 |ck trace| from it|
|00002310| 73 20 69 6e 76 6f 63 61 | 74 69 6f 6e 20 70 6f 69 |s invoca|tion poi|
|00002320| 6e 74 2e 0a 0a 20 20 20 | 20 54 68 65 20 6f 70 74 |nt... | The opt|
|00002330| 69 6f 6e 61 6c 20 27 66 | 27 20 61 72 67 75 6d 65 |ional 'f|' argume|
|00002340| 6e 74 20 63 61 6e 20 62 | 65 20 75 73 65 64 20 74 |nt can b|e used t|
|00002350| 6f 20 73 70 65 63 69 66 | 79 20 61 6e 20 61 6c 74 |o specif|y an alt|
|00002360| 65 72 6e 61 74 65 0a 20 | 20 20 20 73 74 61 63 6b |ernate. | stack|
|00002370| 20 66 72 61 6d 65 20 61 | 74 20 77 68 69 63 68 20 | frame a|t which |
|00002380| 74 6f 20 73 74 61 72 74 | 2e 20 54 68 65 20 6f 70 |to start|. The op|
|00002390| 74 69 6f 6e 61 6c 20 27 | 6c 69 6d 69 74 27 20 61 |tional '|limit' a|
|000023a0| 6e 64 20 27 66 69 6c 65 | 27 0a 20 20 20 20 61 72 |nd 'file|'. ar|
|000023b0| 67 75 6d 65 6e 74 73 20 | 68 61 76 65 20 74 68 65 |guments |have the|
|000023c0| 20 73 61 6d 65 20 6d 65 | 61 6e 69 6e 67 20 61 73 | same me|aning as|
|000023d0| 20 66 6f 72 20 70 72 69 | 6e 74 5f 65 78 63 65 70 | for pri|nt_excep|
|000023e0| 74 69 6f 6e 28 29 2e 0a | 20 20 20 20 69 02 00 00 |tion()..| i...|
|000023f0| 00 4e 28 08 00 00 00 52 | 14 00 00 00 74 11 00 00 |.N(....R|....t...|
|00002400| 00 5a 65 72 6f 44 69 76 | 69 73 69 6f 6e 45 72 72 |.ZeroDiv|isionErr|
|00002410| 6f 72 52 15 00 00 00 52 | 4b 00 00 00 52 23 00 00 |orR....R|K...R#..|
|00002420| 00 74 06 00 00 00 66 5f | 62 61 63 6b 52 1d 00 00 |.t....f_|backR...|
|00002430| 00 52 00 00 00 00 28 03 | 00 00 00 52 2f 00 00 00 |.R....(.|...R/...|
|00002440| 52 2d 00 00 00 52 10 00 | 00 00 28 00 00 00 00 28 |R-...R..|..(....(|
|00002450| 00 00 00 00 73 0c 00 00 | 00 74 72 61 63 65 62 61 |....s...|.traceba|
|00002460| 63 6b 2e 70 79 52 0b 00 | 00 00 fa 00 00 00 73 0c |ck.pyR..|......s.|
|00002470| 00 00 00 00 07 0d 01 03 | 01 0a 01 0e 01 1f 01 63 |........|.......c|
|00002480| 02 00 00 00 02 00 00 00 | 07 00 00 00 43 00 00 00 |........|....C...|
|00002490| 73 5a 00 00 00 7c 00 00 | 64 02 00 6a 08 00 6f 3a |sZ...|..|d..j..o:|
|000024a0| 00 01 79 0a 00 74 01 00 | 82 01 00 57 71 47 00 04 |..y..t..|...WqG..|
|000024b0| 74 01 00 6a 0a 00 6f 1d | 00 01 01 01 01 74 02 00 |t..j..o.|.....t..|
|000024c0| 69 03 00 83 00 00 64 01 | 00 19 69 04 00 69 05 00 |i.....d.|..i..i..|
|000024d0| 7d 00 00 71 47 00 01 58 | 6e 01 00 01 74 06 00 74 |}..qG..X|n...t..t|
|000024e0| 07 00 7c 00 00 7c 01 00 | 83 02 00 83 01 00 53 28 |..|..|..|......S(|
|000024f0| 03 00 00 00 73 35 00 00 | 00 53 68 6f 72 74 68 61 |....s5..|.Shortha|
|00002500| 6e 64 20 66 6f 72 20 27 | 66 6f 72 6d 61 74 5f 6c |nd for '|format_l|
|00002510| 69 73 74 28 65 78 74 72 | 61 63 74 5f 73 74 61 63 |ist(extr|act_stac|
|00002520| 6b 28 66 2c 20 6c 69 6d | 69 74 29 29 27 2e 69 02 |k(f, lim|it))'.i.|
|00002530| 00 00 00 4e 28 08 00 00 | 00 52 14 00 00 00 52 4f |...N(...|.R....RO|
|00002540| 00 00 00 52 15 00 00 00 | 52 4b 00 00 00 52 23 00 |...R....|RK...R#.|
|00002550| 00 00 52 50 00 00 00 52 | 04 00 00 00 52 00 00 00 |..RP...R|....R...|
|00002560| 00 28 02 00 00 00 52 2f | 00 00 00 52 2d 00 00 00 |.(....R/|...R-...|
|00002570| 28 00 00 00 00 28 00 00 | 00 00 73 0c 00 00 00 74 |(....(..|..s....t|
|00002580| 72 61 63 65 62 61 63 6b | 2e 70 79 52 05 00 00 00 |raceback|.pyR....|
|00002590| 08 01 00 00 73 0c 00 00 | 00 00 02 0d 01 03 01 0a |....s...|........|
|000025a0| 01 0e 01 1f 01 63 02 00 | 00 00 09 00 00 00 08 00 |.....c..|........|
|000025b0| 00 00 43 00 00 00 73 50 | 01 00 00 7c 00 00 64 05 |..C...sP|...|..d.|
|000025c0| 00 6a 08 00 6f 3a 00 01 | 79 0a 00 74 01 00 82 01 |.j..o:..|y..t....|
|000025d0| 00 57 71 47 00 04 74 01 | 00 6a 0a 00 6f 1d 00 01 |.WqG..t.|.j..o...|
|000025e0| 01 01 01 74 02 00 69 03 | 00 83 00 00 64 01 00 19 |...t..i.|....d...|
|000025f0| 69 04 00 69 05 00 7d 00 | 00 71 47 00 01 58 6e 01 |i..i..}.|.qG..Xn.|
|00002600| 00 01 7c 01 00 64 05 00 | 6a 08 00 6f 21 00 01 74 |..|..d..|j..o!..t|
|00002610| 06 00 74 02 00 64 02 00 | 83 02 00 6f 0d 00 01 74 |..t..d..|...o...t|
|00002620| 02 00 69 07 00 7d 01 00 | 71 75 00 01 6e 01 00 01 |..i..}..|qu..n...|
|00002630| 67 00 00 7d 02 00 64 03 | 00 7d 03 00 78 be 00 7c |g..}..d.|.}..x..||
|00002640| 00 00 64 05 00 6a 09 00 | 6f b0 00 01 7c 01 00 64 |..d..j..|o...|..d|
|00002650| 05 00 6a 08 00 70 0d 00 | 01 7c 03 00 7c 01 00 6a |..j..p..|.|..|..j|
|00002660| 00 00 6f 96 00 01 7c 00 | 00 69 08 00 7d 04 00 7c |..o...|.|.i..}..||
|00002670| 00 00 69 09 00 7d 05 00 | 7c 05 00 69 0a 00 7d 06 |..i..}..||..i..}.|
|00002680| 00 7c 05 00 69 0b 00 7d | 07 00 74 0c 00 69 0d 00 |.|..i..}|..t..i..|
|00002690| 7c 06 00 83 01 00 01 74 | 0c 00 69 0e 00 7c 06 00 ||......t|..i..|..|
|000026a0| 7c 04 00 7c 00 00 69 0f | 00 83 03 00 7d 08 00 7c ||..|..i.|....}..||
|000026b0| 08 00 6f 10 00 01 7c 08 | 00 69 10 00 83 00 00 7d |..o...|.|.i.....}|
|000026c0| 08 00 6e 07 00 01 64 05 | 00 7d 08 00 7c 02 00 69 |..n...d.|.}..|..i|
|000026d0| 11 00 7c 06 00 7c 04 00 | 7c 07 00 7c 08 00 66 04 |..|..|..||..|..f.|
|000026e0| 00 83 01 00 01 7c 00 00 | 69 05 00 7d 00 00 7c 03 |.....|..|i..}..|.|
|000026f0| 00 64 04 00 17 7d 03 00 | 71 84 00 01 57 7c 02 00 |.d...}..|q...W|..|
|00002700| 69 12 00 83 00 00 01 7c | 02 00 53 28 06 00 00 00 |i......||..S(....|
|00002710| 73 73 01 00 00 45 78 74 | 72 61 63 74 20 74 68 65 |ss...Ext|ract the|
|00002720| 20 72 61 77 20 74 72 61 | 63 65 62 61 63 6b 20 66 | raw tra|ceback f|
|00002730| 72 6f 6d 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |rom the |current |
|00002740| 73 74 61 63 6b 20 66 72 | 61 6d 65 2e 0a 0a 20 20 |stack fr|ame... |
|00002750| 20 20 54 68 65 20 72 65 | 74 75 72 6e 20 76 61 6c | The re|turn val|
|00002760| 75 65 20 68 61 73 20 74 | 68 65 20 73 61 6d 65 20 |ue has t|he same |
|00002770| 66 6f 72 6d 61 74 20 61 | 73 20 66 6f 72 20 65 78 |format a|s for ex|
|00002780| 74 72 61 63 74 5f 74 62 | 28 29 2e 20 20 54 68 65 |tract_tb|(). The|
|00002790| 0a 20 20 20 20 6f 70 74 | 69 6f 6e 61 6c 20 27 66 |. opt|ional 'f|
|000027a0| 27 20 61 6e 64 20 27 6c | 69 6d 69 74 27 20 61 72 |' and 'l|imit' ar|
|000027b0| 67 75 6d 65 6e 74 73 20 | 68 61 76 65 20 74 68 65 |guments |have the|
|000027c0| 20 73 61 6d 65 20 6d 65 | 61 6e 69 6e 67 20 61 73 | same me|aning as|
|000027d0| 20 66 6f 72 0a 20 20 20 | 20 70 72 69 6e 74 5f 73 | for. | print_s|
|000027e0| 74 61 63 6b 28 29 2e 20 | 20 45 61 63 68 20 69 74 |tack(). | Each it|
|000027f0| 65 6d 20 69 6e 20 74 68 | 65 20 6c 69 73 74 20 69 |em in th|e list i|
|00002800| 73 20 61 20 71 75 61 64 | 72 75 70 6c 65 20 28 66 |s a quad|ruple (f|
|00002810| 69 6c 65 6e 61 6d 65 2c | 0a 20 20 20 20 6c 69 6e |ilename,|. lin|
|00002820| 65 20 6e 75 6d 62 65 72 | 2c 20 66 75 6e 63 74 69 |e number|, functi|
|00002830| 6f 6e 20 6e 61 6d 65 2c | 20 74 65 78 74 29 2c 20 |on name,| text), |
|00002840| 61 6e 64 20 74 68 65 20 | 65 6e 74 72 69 65 73 20 |and the |entries |
|00002850| 61 72 65 20 69 6e 20 6f | 72 64 65 72 0a 20 20 20 |are in o|rder. |
|00002860| 20 66 72 6f 6d 20 6f 6c | 64 65 73 74 20 74 6f 20 | from ol|dest to |
|00002870| 6e 65 77 65 73 74 20 73 | 74 61 63 6b 20 66 72 61 |newest s|tack fra|
|00002880| 6d 65 2e 0a 20 20 20 20 | 69 02 00 00 00 52 21 00 |me.. |i....R!.|
|00002890| 00 00 69 00 00 00 00 69 | 01 00 00 00 4e 28 13 00 |..i....i|....N(..|
|000028a0| 00 00 52 14 00 00 00 52 | 4f 00 00 00 52 15 00 00 |..R....R|O...R...|
|000028b0| 00 52 4b 00 00 00 52 23 | 00 00 00 52 50 00 00 00 |.RK...R#|...RP...|
|000028c0| 52 22 00 00 00 52 21 00 | 00 00 74 08 00 00 00 66 |R"...R!.|..t....f|
|000028d0| 5f 6c 69 6e 65 6e 6f 52 | 24 00 00 00 52 25 00 00 |_linenoR|$...R%..|
|000028e0| 00 52 26 00 00 00 52 27 | 00 00 00 52 28 00 00 00 |.R&...R'|...R(...|
|000028f0| 52 29 00 00 00 52 2a 00 | 00 00 52 17 00 00 00 52 |R)...R*.|..R....R|
|00002900| 1e 00 00 00 74 07 00 00 | 00 72 65 76 65 72 73 65 |....t...|.reverse|
|00002910| 28 09 00 00 00 52 2f 00 | 00 00 52 2d 00 00 00 52 |(....R/.|..R-...R|
|00002920| 1f 00 00 00 52 2e 00 00 | 00 52 1a 00 00 00 52 30 |....R...|.R....R0|
|00002930| 00 00 00 52 19 00 00 00 | 52 1b 00 00 00 52 1c 00 |...R....|R....R..|
|00002940| 00 00 28 00 00 00 00 28 | 00 00 00 00 73 0c 00 00 |..(....(|....s...|
|00002950| 00 74 72 61 63 65 62 61 | 63 6b 2e 70 79 52 00 00 |.traceba|ck.pyR..|
|00002960| 00 00 11 01 00 00 73 30 | 00 00 00 00 09 0d 01 03 |......s0|........|
|00002970| 01 0a 01 0e 01 1f 01 0d | 01 10 01 11 01 06 01 06 |........|........|
|00002980| 01 2a 01 09 01 09 01 09 | 01 09 01 0d 01 18 01 17 |.*......|........|
|00002990| 01 06 01 19 01 09 01 0f | 01 0a 01 63 01 00 00 00 |........|...c....|
|000029a0| 01 00 00 00 01 00 00 00 | 43 00 00 00 73 07 00 00 |........|C...s...|
|000029b0| 00 7c 00 00 69 00 00 53 | 28 01 00 00 00 73 52 00 |.|..i..S|(....sR.|
|000029c0| 00 00 43 61 6c 63 75 6c | 61 74 65 20 63 6f 72 72 |..Calcul|ate corr|
|000029d0| 65 63 74 20 6c 69 6e 65 | 20 6e 75 6d 62 65 72 20 |ect line| number |
|000029e0| 6f 66 20 74 72 61 63 65 | 62 61 63 6b 20 67 69 76 |of trace|back giv|
|000029f0| 65 6e 20 69 6e 20 74 62 | 2e 0a 0a 20 20 20 20 4f |en in tb|... O|
|00002a00| 62 73 6f 6c 65 74 65 20 | 69 6e 20 32 2e 33 2e 0a |bsolete |in 2.3..|
|00002a10| 20 20 20 20 28 01 00 00 | 00 52 0d 00 00 00 28 01 | (...|.R....(.|
|00002a20| 00 00 00 52 2c 00 00 00 | 28 00 00 00 00 28 00 00 |...R,...|(....(..|
|00002a30| 00 00 73 0c 00 00 00 74 | 72 61 63 65 62 61 63 6b |..s....t|raceback|
|00002a40| 2e 70 79 52 0d 00 00 00 | 33 01 00 00 73 02 00 00 |.pyR....|3...s...|
|00002a50| 00 00 05 28 18 00 00 00 | 74 07 00 00 00 5f 5f 64 |...(....|t....__d|
|00002a60| 6f 63 5f 5f 52 27 00 00 | 00 52 15 00 00 00 52 3a |oc__R'..|.R....R:|
|00002a70| 00 00 00 74 07 00 00 00 | 5f 5f 61 6c 6c 5f 5f 52 |...t....|__all__R|
|00002a80| 13 00 00 00 52 14 00 00 | 00 52 1d 00 00 00 52 04 |....R...|.R....R.|
|00002a90| 00 00 00 52 0c 00 00 00 | 52 06 00 00 00 52 01 00 |...R....|R....R..|
|00002aa0| 00 00 52 09 00 00 00 52 | 02 00 00 00 52 03 00 00 |..R....R|....R...|
|00002ab0| 00 52 3d 00 00 00 52 49 | 00 00 00 52 07 00 00 00 |.R=...RI|...R....|
|00002ac0| 52 08 00 00 00 52 0a 00 | 00 00 52 0b 00 00 00 52 |R....R..|..R....R|
|00002ad0| 05 00 00 00 52 00 00 00 | 00 52 0d 00 00 00 28 00 |....R...|.R....(.|
|00002ae0| 00 00 00 28 00 00 00 00 | 28 00 00 00 00 73 0c 00 |...(....|(....s..|
|00002af0| 00 00 74 72 61 63 65 62 | 61 63 6b 2e 70 79 73 08 |..traceb|ack.pys.|
|00002b00| 00 00 00 3c 6d 6f 64 75 | 6c 65 3e 01 00 00 00 73 |...<modu|le>....s|
|00002b10| 32 00 00 00 06 02 0c 01 | 0c 01 0c 02 09 01 09 01 |2.......|........|
|00002b20| 0c 01 12 02 0f 04 0c 0b | 09 13 0f 1c 0c 04 0c 20 |........|....... |
|00002b30| 0f 15 0c 11 09 37 09 09 | 09 07 0f 0d 0c 09 0f 09 |.....7..|........|
|00002b40| 12 0e 0f 09 0f 22 | |....." | |
+--------+-------------------------+-------------------------+--------+--------+